@extends('admin.base')

@section('css')

@endsection
@section('content')
    <div class="layui-card" style="margin-top: 20px; height: 230px;">
        <div class="layui-card-body">
            <form id="uploadForm" action="{{route('admin.category.importExcelData')}}" method="post" enctype="multipart/form-data">
                <div class="layui-form">
                    {{csrf_field()}}
                    <div class="layui-form-item" style="margin-top: 20px;">
                        <label for="" class="layui-form-label"></label>
                        <div class="layui-input-inline">
                            <input type="file" name="excelFile" id="excelFile" accept=".xlsx">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn layui-btn-sm" name="upload">上传并处理</button>
                            <a href="/uploads/demo/keyword.xlsx" class="layui-btn layui-btn-primary layui-btn-sm">上传模版下载</a>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
